<template>
  <el-tooltip :content="title" placement="top-start">
    <el-button @click="handleClick" v-bind="$attrs" v-on="$listeners"/>
  </el-tooltip>
</template>

<script type="text/ecmascript-6">

  export default {
    name: 'HintButton',
    props: {
      title: String
    },
    methods: {
      handleClick(event) {
        // 必须让button失去焦点
        // event.target.blur() // target有可能是button里面的i标签
        event.currentTarget.blur() // currentTarget是button
      }
    },
  }
</script>
